simetrix.currentSchematic

simetrix.currentSchematic() Schematic

Returns the currently active schematic. The returned schematic object will be invalid if there are no schematics open. Use the Schematic.valid property to determine if a schematic object is valid.

The currentSchematic is the schematic most recently selected in the GUI.